package com.binance.assetservice.data.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.binance.assetservice.data.models.UserAssetLogItem;
import com.binance.master.old.config.OldDB;

import java.math.BigDecimal;
import java.util.Date;

@OldDB
@Component("asset.service.userAssetLogMapper")
public interface UserAssetLogMapper {

    int insertUsreAssetLog(UserAssetLogItem userAssetLogItem);

    BigDecimal getAssetDeltaByTime(@Param("userId") String userId, @Param("asset") String asset, @Param("endTime") Date endTime);

    BigDecimal getAssetDelta(@Param("userId") String userId, @Param("asset") String asset);

}
